/***************************************************************************
 * File name: EPubTypes.h
 * Original author: caizhifei2003@163.com
 * Date: 2013.02.19
 ***************************************************************************/
#ifndef _EPUB_TYPE_H_
#define _EPUB_TYPE_H_


typedef unsigned int			EPUB_UInt32;
typedef signed int				EPUB_Int32; 
typedef unsigned short			EPUB_UInt16;
typedef signed short			EPUB_Int16; 
typedef unsigned char			EPUB_UInt8; 
typedef signed char				EPUB_Int8;  
typedef float					EPUB_Float; 


#if !defined(NULL)
#if defined (__cplusplus)
#define NULL 0
#else
#define NULL ((void*) 0)
#endif
#endif


typedef enum {
    EPUB_FALSE = 0, 
    EPUB_TRUE  = 1
} EPUB_Boolean;


typedef int EPUB_Result;

#define EPUB_SUCCESS 0

#define EPUB_SUCCEEDED(ret)	(EPUB_SUCCESS == ret)
#define EPUB_FAILED(ret)	(!EPUB_SUCCEEDED(ret))


typedef EPUB_UInt32 EPUB_Size;


typedef EPUB_UInt8 EPUB_Byte;


#endif // _EPUB_TYPE_H_